{include="header"}

{if condition="$fsc->agente"}
   {if condition="$fsc->caja"}
   <div class="text-center">
      <img src='view/img/big_lock.png' alt="Acceso denegado"/>
   </div>
   {else}
   <script type="text/javascript">
      $(document).ready(function() {
         document.f_caja.d_inicial.select();
      });
   </script>
   
   <form name="f_caja" action="{$fsc->url()}" method="post" class="form">
      <div class="container">
         <div class="row">
            <div class="col-md-12">
               <h1>Abrir caja:</h1>
            </div>
         </div>
         <div class="row">
            <div class="col-md-12">
               <div class="form-group">
                  ¿Cuanto dinero hay en la caja?
                  <div class="input-group">
                     <input class="form-control" type="text" name="d_inicial" value="0.00" size="7" autocomplete="off"/>
                     <span class="input-group-btn">
                        <button class="btn btn-primary" type="submit">
                           Empezar
                        </button>
                     </span>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </form>
   {/if}
   <div class="hidden">
      <iframe src="http://localhost:10080" height="0"></iframe>
   </div>
{else}
<div class="text-center">
   <img src='view/img/big_lock.png' alt="Acceso denegado"/>
</div>
{/if}

{include="footer"}